<template>
  <div>
    <div v-if="$store.state.user.phoneId">
      <div>欢迎{{$store.state.user.phoneId}}</div>
      <button @click="exit">退出</button>
    </div>
    <div v-else>
      请
      <router-link to="/login">登录/注册</router-link>
    </div>
  </div>
</template>

<script>
export default {
  components: {},
  props: {},
  data() {
    return {};
  },
  watch: {},
  computed: {},
  methods: {
    exit() {
      this.$store.commit('changeExit')
    }
  },
  created() {},
  mounted() {}
};
</script>
<style lang="scss" scoped>
</style>